import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class Main extends MIDlet implements CommandListener {
    private Command exitCommand;
    private TextBox tbox;

    public Main() {
    }

    protected void startApp() {
    	System.out.println();
    	new JPGResizer("file://localhost/root1/large.jpg");
        Display.getDisplay(this).setCurrent(tbox);
    }

    protected void pauseApp() {}
    protected void destroyApp(boolean bool) {}

    public void commandAction(Command cmd, Displayable disp) {
        if (cmd == exitCommand) {
            destroyApp(false);
            notifyDestroyed();
        }
    }
}